import { notification } from 'ant-design-vue'

const oyNotification = (option) => {
    notification[option.type || 'info']({
        ...option,
        ...{
            message: option.message || '提示',
            description: option.description || ''
        }
    })
}

export default oyNotification
